Skip to content

Conversation

@TendonFFF
Copy link
Collaborator

@TendonFFF TendonFFF commented Mar 6, 2025

Checklist

Thank you for contributing to QuantumToolbox.jl! Please make sure you have finished the following tasks before opening the PR.

  • Please read Contributing to Quantum Toolbox in Julia.
  • Any code changes were done in a way that does not break public API.
  • Appropriate tests were added and tested locally by running: make test.
  • Any code changes should be julia formatted by running: make format.
  • All documents (in docs/ folder) related to code changes were updated and able to build locally by running: make docs.
  • (If necessary) the CHANGELOG.md should be updated (regarding to the code changes) and built by running: make changelog.

Request for a review after you have completed all the tasks. If you have not finished them all, you can also open a Draft Pull Request to let the others know this on-going work.

Description

Implement plot_fock_distribution, which is provided in QuTiP, into the CairoMakie extension. It partially replicates the behavior in QuTiP such that only the input of one state is available. The animation feature for AbstractVector{SType} of state input is not implemented for that CairoMakie does not provide animation.ArtistAnimation like matplotlib.

@TendonFFF TendonFFF marked this pull request as ready for review March 6, 2025 05:55
@codecov
Copy link

codecov bot commented Mar 6, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.39%. Comparing base (20bf62b) to head (7011167).
Report is 2 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main     #428       +/-   ##
===========================================
+ Coverage   15.55%   94.39%   +78.84%     
===========================================
  Files          47       47               
  Lines        2938     2998       +60     
===========================================
+ Hits          457     2830     +2373     
+ Misses       2481      168     -2313     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ytdHuang ytdHuang merged commit b5b770f into qutip:main Mar 7, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants